package cn.cool.exception;

import cn.cool.util.CdConstant;


public class CdBasicException extends RuntimeException {

    private static final long serialVersionUID = 1838507425241010178L;

    private int code = CdConstant.GL_CODE_UNDEFINED;

    public CdBasicException(int code) {
        super();
        this.code = code;
    }

    public CdBasicException(String message) {
        super(message);
    }

    public CdBasicException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }


    public CdBasicException setCode(int code) {
        this.code = code;
        return this;
    }

}
